FROM alpine:3.14

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk add -U tzdata && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN apk --update add openjdk8

ENV JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Duser.timezone=GMT+08"

WORKDIR /tmp

EXPOSE 8088

CMD ["/bin/sh", "-c", "java -jar  $JAVA_OPTS /app.jar "]